Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read_topic API #288

Merged
merged 32 commits into from
Nov 1, 2023
Merged

read_topic API #288

merged 32 commits into from
Nov 1, 2023

Conversation

neekolas
Copy link
Contributor

Summary

The only query patterns I can see in our use-cases are to read a topic to completion, after a given timestamp. So, I made a method in the ApiWrapper that does that and handles pagination for the caller.

@neekolas neekolas changed the title Read Topic API read_topic API Oct 30, 2023
Base automatically changed from rich/sqlite-store to main October 30, 2023 15:32
@neekolas neekolas marked this pull request as ready for review October 30, 2023 16:14
@neekolas neekolas requested a review from a team October 30, 2023 16:14
@richardhuaaa
Copy link
Contributor

Nooby question - is there a max page size our API supports? If our client is always reading to completion, what is the purpose of paging under the hood?

@neekolas
Copy link
Contributor Author

neekolas commented Nov 1, 2023

@richardhuaaa 100 item max page size

Copy link
Contributor

@richardhuaaa richardhuaaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

xmtp_mls/src/api_client_wrapper.rs Outdated Show resolved Hide resolved
xmtp_mls/src/api_client_wrapper.rs Outdated Show resolved Hide resolved
@neekolas neekolas merged commit 36c2c64 into main Nov 1, 2023
16 checks passed
@neekolas neekolas deleted the nmolnar/read-topic-api branch November 1, 2023 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants